<template>
  <div style="overflow-y: overlay;" v-html="formatHtml($data.data.message)"></div>
</template>

<script>
export default {
  data () {
    return {}
  },
  created () {},
  methods: {
    formatHtml (message) {
      if (message) {
        const tempData = message
          .replace(/\n/gm, '<br/>')
          .replace(/[\r\n]/g, '')
          .replace(/<br[^>]*>/gi, '')
        return tempData.replace(/href/g, " target='_blank' href")
      } else {
        return ''
      }
    }
  }
}
</script>

<style scoped lang="scss">

</style>
